﻿using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Water.Model;

namespace Water.Data.Repositories.Mappings
{
    public class PipelineMap : ClassMap<Pipeline>
    {
        public PipelineMap()
        {
            Table("TZ_GXSX");
            Id(x => x.PIPEID).GeneratedBy.Assigned().Column("PIPE_ID");
            Map(x => x.STNAME).Column("ST_NAME");
            Map(x => x.PIPED).Column("PIPE_D");
            Map(x => x.MATERIAL).Column("MATERIAL");
            Map(x => x.DEPTH).Column("DEPTH");
            Map(x => x.LENGTH).Column("LENGTH");
            Map(x => x.INSDATE).Column("INS_DATE");
            Map(x => x.ELEV).Column("ELEV");
            Map(x => x.JOINTT).Column("JOINT_T");
            Map(x => x.JOINTM).Column("JOINT_M");
            Map(x => x.LININGI).Column("LINING_I");
            Map(x => x.LDATE).Column("L_DATE");
            Map(x => x.LININGE).Column("LINING_E");
            Map(x => x.NDATE).Column("N_DATE");
            Map(x => x.NFACT).Column("N_FACT");
            Map(x => x.CFACT).Column("C_FACT");
            Map(x => x.PRJ).Column("PRJ");
            Map(x => x.PSBH).Column("PSBH");
            Map(x => x.PURPOSE).Column("PURPOSE");
            Map(x => x.PIPETYPE).Column("PIPETYPE");
            Map(x => x.PAVEMENT).Column("PAVEMENT");
            Map(x => x.COMPNAME).Column("COMP_NAME");
            Map(x => x.BZBH).Column("BZBH");
            Map(x => x.PROJECT).Column("PROJECT");
            Map(x => x.SOURCE).Column("SOURCE");
            Map(x => x.GJZ).Column("GJZ");
            Map(x => x.SBLB).Column("SBLB");
            Map(x => x.SSQX).Column("SSQX");
            Map(x => x.SSZS).Column("SSZS");
            Map(x => x.TXYX).Column("TXYX");
            Map(x => x.BZ).Column("BZ");
            Map(x => x.PICTURE).Column("PICTURE");
            Map(x => x.SSHX).Column("SSHX");
            Map(x => x.CDATE).Column("CDATE");
            Map(x => x.TFH).Column("TFH");
            Map(x => x.EpcNO).Column("EpcNO");
        }
    }
}
